#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class Score : Business.BusinessBase<Score, int>
	{
		#region Fields and Properties

		private String stdCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdCode
		{
			get { return stdCode; }
			set
			{
				if (value != stdCode)
				{
					MarkChanged("StdCode");
					stdCode = value;
				}
			}
		}

		private String scoreType = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ScoreType
		{
			get { return scoreType; }
			set
			{
				if (value != scoreType)
				{
					MarkChanged("ScoreType");
					scoreType = value;
				}
			}
		}

		private Decimal totalScore = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal TotalScore
		{
			get { return totalScore; }
			set
			{
				if (value != totalScore)
				{
					MarkChanged("TotalScore");
					totalScore = value;
				}
			}
		}

		private Decimal endScore = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal EndScore
		{
			get { return endScore; }
			set
			{
				if (value != endScore)
				{
					MarkChanged("EndScore");
					endScore = value;
				}
			}
		}

		private Decimal middleScore = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal MiddleScore
		{
			get { return middleScore; }
			set
			{
				if (value != middleScore)
				{
					MarkChanged("MiddleScore");
					middleScore = value;
				}
			}
		}

		private Decimal usualScore = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal UsualScore
		{
			get { return usualScore; }
			set
			{
				if (value != usualScore)
				{
					MarkChanged("UsualScore");
					usualScore = value;
				}
			}
		}

		private String classCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ClassCode
		{
			get { return classCode; }
			set
			{
				if (value != classCode)
				{
					MarkChanged("ClassCode");
					classCode = value;
				}
			}
		}

		private int term = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Term
		{
			get { return term; }
			set
			{
				if (value != term)
				{
					MarkChanged("Term");
					term = value;
				}
			}
		}

		private String grade = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Grade
		{
			get { return grade; }
			set
			{
				if (value != grade)
				{
					MarkChanged("Grade");
					grade = value;
				}
			}
		}

		private String yearNum = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String YearNum
		{
			get { return yearNum; }
			set
			{
				if (value != yearNum)
				{
					MarkChanged("YearNum");
					yearNum = value;
				}
			}
		}

		private String courseCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CourseCate
		{
			get { return courseCate; }
			set
			{
				if (value != courseCate)
				{
					MarkChanged("CourseCate");
					courseCate = value;
				}
			}
		}

		private String courseCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CourseCode
		{
			get { return courseCode; }
			set
			{
				if (value != courseCode)
				{
					MarkChanged("CourseCode");
					courseCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public Score()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override Score DataSelect(int id)
		{
			return Services.DALService.ScoreService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.ScoreService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.ScoreService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.ScoreService.Delete(this);
		}

		#endregion Base overrides
	}
}
